﻿using Biotech.Log;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace project.B12.Model.Error
{
    [AttributeUsage(AttributeTargets.Field)]
    public sealed class ErrorCodeItemAttribute : Attribute
    {
        public ErrorCodeItemAttribute()
        {
        }

        /// <summary>
        /// 故障代号
        /// </summary>
        public object ErrCode { get; set; }

        /// <summary>
        /// 故障名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 级别
        /// </summary>
        public LogType Type { get; set; }

        /// <summary>
        /// 故障信息
        /// </summary>
        public string Message { get; set; }

        /// <summary>
        /// 故障模块
        /// </summary>
        public string Module { get; set; }

        /// <summary>
        /// 故障原因
        /// </summary>
        public string Reason { get; set; }

        /// <summary>
        /// 解决方法
        /// </summary>
        public string Solution { get; set; }
    }
}
